function FeedbackModel() {
	this.parent();
}

FeedbackModel.inherits(BaseModel, {

});

function createFeedbackModel(data) {
	var feedback = data.getElementsByTagName("feedback");
	var arrFeedback = [];
	var feedbackId, email, title, content, isReaded, createTime;
	for (var i = 0; i < feedback.length; i++) {
		feedbackId = feedback[i].getElementsByTagName("feedbackId")[0].childNodes[0].nodeValue;
		email = feedback[i].getElementsByTagName("email")[0].childNodes[0].nodeValue;
		title = feedback[i].getElementsByTagName("title")[0].childNodes[0].nodeValue;
		content = feedback[i].getElementsByTagName("contents")[0].childNodes[0].nodeValue;
		isReaded = feedback[i].getElementsByTagName("isReaded")[0].childNodes[0].nodeValue;
		createTime = feedback[i].getElementsByTagName("createTime")[0].childNodes[0].nodeValue;

		arrFeedback[i] = {
			"feedbackId" : feedbackId,
			"email" : email,
			"title" : title,
			"content" : content,
			"isReaded" : isReaded,
			"createTime" : createTime,
		}
	}

	return new Feedback(arrFeedback);
}

var Feedback = function(feedbacks) {
	this.feedbacks = feedbacks;
}
